package command;

public class Control {
	private Command onCommand, offCommand, changeChannel;

	public Control(Command onCommand, Command offCommand, Command changeChannel) {
		super();
		this.onCommand = onCommand;
		this.offCommand = offCommand;
		this.changeChannel = changeChannel;
	}

	public void turnOn() {
		onCommand.execute();
	}

	public void turnOff() {
		offCommand.execute();
	}

	public void changeChannel() {
		changeChannel.execute();
	}
}
